package com.dog.basics.api.controller.mtkj;


import com.dog.basics.common.constant.SwaggerConstants;
import com.dog.basics.common.util.R;
import com.dog.basics.service.mtkj.IMtOrderComplaintService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 设备订单异常反馈表 前端控制器
 * </p>
 *
 * @author wph
 * @since 2020-10-07
 */
@RestController
@RequestMapping("/api/order/complaint")
@Api(value = "设备订单异常反馈模块", tags = SwaggerConstants.API_ALL)
@AllArgsConstructor
public class MtOrderComplaintController {
    private final IMtOrderComplaintService mtOrderComplaintService;
    /**
     * @Description: 新增设备订单异常反馈
     * @Param: DepositFromDto
     * @return: IPage<DepositVo>
     * @Author: wph
     * @Date:
     */
    @ApiOperation(value = "设备订单异常反馈", notes = "设备订单异常反馈",tags = SwaggerConstants.API_MY)
    @ApiImplicitParam(name = "ordrId", value = "订单ID", required = true, paramType = "Long")
    @PostMapping("saveObj/{ordrId}")
    public R<Boolean> saveObj(@PathVariable("ordrId") Long ordrId){
        return R.ok(mtOrderComplaintService.saveObj(ordrId));
    }
}
